package com.lib.dto;

import com.lib.model.InstallmentInfo;
import com.lib.model.InstallmentRequest;
import com.lib.model.enums.InstallmentStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by duqingxiang on 17/5/25.
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class InstallmentRequestDTO {

    public InstallmentRequestDTO(int error) {
        this.error = error;
    }

    private String id;

    private long customerId;//租客的id

    private long agentId;//中介的id

    private String agentName;//中介的名字

    private long infoId;//详细信息的id

    private String phone;//手机号

    private double monthlyRent;//月租金

    private int rentalPeriod;//租期

    private Date startDate;//起租日期

    private InstallmentStatusEnum status;//状态

    private String statusName;//状态名称

    private Date createdDate;//创建日期

    private InstallmentInfoDTO infoDTO;

    private int error;//错误标识

}
